package jaux.tank.admin.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Getter;
import lombok.Setter;

/**
 * JWT 配置
 */
@Component
@ConfigurationProperties(prefix = JWTProperties.PROPS_PREFIX)
@Getter @Setter
public class JWTProperties {

	public static final String PROPS_PREFIX = "tank.jwt";
	
	private Boolean open = false;
	
	private String algorithm = "HS256";
	
	private String type = "JWT";
	
	private String secret = "tank";
	
	private Long expiration = 86400L;
	
	private String issuer = "tank";
	
	private String subject = "";
	
	private String audience = "";
	
	private String prefix = "Bearer ";
	
}
